from datetime import datetime

from src.baseapp.model import db, CustomDbModel


class TestCaseDirectoryModel(CustomDbModel):
    __tablename__ = 'testcase_directory'

    directory_id = db.Column(db.Integer, primary_key=True, autoincrement=True)

    # 目录名称
    name = db.Column(db.String(255), nullable=False)

    # 所属上级目录，若当前为顶级目录则为-1
    parent_id = db.Column(db.Integer, nullable=False, default=-1)
